import display from '@ohos.display';

const curDis = display.getDefaultDisplaySync();
const designWidth = 750;
const width:number = curDis.width
const px = (len:number)=>{
  return (len/designWidth)* width +'px'
}
console.log('width',width)
export default px